﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    <link href="~/Content/jquery-easyui-1.9.4/themes/metro/easyui.css" rel="stylesheet" />
    @*<link href="~/Content/jquery-easyui-1.9.4/themes/gray/easyui.css" rel="stylesheet" />*@
    <link href="~/Content/scripts/jquery-easyui-extensions/datagrid/datagrid.css" rel="stylesheet" />
    <link href="~/Content/layui/css/layui.css" rel="stylesheet" />
    <link href="~/Content/layui/css/layui_extension.css" rel="stylesheet" />
    <link href="~/Content/jquery-easyui-1.9.4/themes/icon.css" rel="stylesheet" />
    <link href="~/Content/960css/960.css" rel="stylesheet" />
    <link href="~/Content/scripts/jquery-plugin/showloading/showLoading.css" rel="stylesheet" />
    <link href="~/Content/icon/icon.css" rel="stylesheet" />
    <link href="~/Content/css/Index.css" rel="stylesheet" />   
    <link href="~/Content/css/Dialog.css" rel="stylesheet" />
    <link href="~/Content/css/com.css" rel="stylesheet" />
    <link href="~/Content/css/font_whut/iconfont.css" rel="stylesheet" />
    <link href="~/Content/css/fontAwesome/css/fontAwesome.css" rel="stylesheet" />

    <script src="~/Content/jquery-easyui-1.9.4/jquery.min.js"></script>
    <script src="~/Content/jquery-easyui-1.9.4/jquery.easyui.min.js"></script>
    <script src="~/Content/jquery-easyui-1.9.4/locale/easyui-lang-zh_CN.js"></script>
    <script src="~/Content/scripts/jquery-plugin/jquery.cookie.js"></script>
    <script src="~/Content/scripts/jquery-easyui-extensions/jquery.jdirk.js"></script>
    <script src="~/Content/scripts/jquery-easyui-extensions/jeasyui.extensions.validatebox.js"></script>
    <script src="~/Content/scripts/jquery-easyui-extensions/menu/jeasyui.extensions.menu.js"></script>
    <script src="~/Content/scripts/jquery-easyui-extensions/datagrid/getColumnInfo.js"></script>
    <script src="~/Content/scripts/jquery-easyui-extensions/datagrid/columnToggle.js"></script>
    <script src="~/Content/scripts/Common/datetools.js"></script>
    <script src="~/Content/scripts/Common/utils.js"></script>
    <script src="~/Content/scripts/Common/common.js"></script>
    <script src="~/Content/scripts/jquery-plugin/showloading/jquery.showLoading.js"></script>
    <script src="~/Content/scripts/Common/StaticComboModel.js"></script>
    <script src="~/Content/layui/layui.all.js"></script>
    <script src="~/Content/css/font_whut/iconfont.js"></script>
    <script src="~/Content/scripts/Common/GetYearOrSchoolYear.js"></script>
    <script src="//at.alicdn.com/t/font_1777012_1n4cykfog9x.js"></script>
    <script src="~/Content/scripts/Common/fileUpLoad.js"></script>

    <script type="text/javascript">
        $(function () {
            var url = window.location.pathname;
            com.ajax({
                url: "/Permission/GetUserBtnPermission",
                type: "POST",
                //async:false,
                data: {
                    url: url
                },
                success: function (data) {
                    LoadBtn(data);

                }
            });

        });



    </script>
    <script type="text/javascript">

        function LoadBtn(data) {
           // console.log(data);
            for (var i = 0; i < data.length; i++) {
                var str = "<a id='" + data[i].btnId + "' href='#' iconcls='"+data[i].Ico+"' onclick='" + data[i].btnFunc + "()' >" + data[i].Name + "</a>";

                $("#btnDiv").append(str);
            }

            $("a").linkbutton({
                plain: true
            });
        }
    </script>
</head>
<body style="background-color: white; height: 100%; width: 100%; position: absolute; overflow: hidden;padding:1px ">
    <div id="divTotal" style="height: 99%; width: 99%; position: absolute; overflow: hidden;margin-top:1px">
        <div id="btnDiv">
        </div>
        <div class="Clear"></div>
        <div id="divContent" style="margin-top: 3px; margin-bottom: 3px;">
            @RenderBody()
        </div>
    </div>
</body>
</html>
